home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sources / xpick / xpick_11.z / xpick_11 / xpick-1.1 / Makefile < prev    next >
Makefile  |  1993-06-14  |  11KB  |  359 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $
  3. #
  4. # The cpp used on this machine replaces all newlines and multiple tabs and
  5. # spaces in a macro expansion with a single space.  Imake tries to compensate
  6. # for this, but is not always successful.
  7. #
  8.  
  9. # -------------------------------------------------------------------------
  10. # Makefile generated from "Imake.tmpl" and <Imakefile>
  11. # $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
  12. #
  13. # Platform-specific parameters may be set in the appropriate <vendor>.cf
  14. # configuration files.  Site-specific parameters should be set in the file
  15. # site.def.  Full rebuilds are recommended if any parameters are changed.
  16. #
  17. # If your C preprocessor does not define any unique symbols, you will need
  18. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  19. # "make World" the first time).
  20. #
  21.  
  22. # -------------------------------------------------------------------------
  23. # site-specific configuration parameters that need to come before
  24. # the platform-specific parameters - edit site.def to change
  25.  
  26. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  27.  
  28. # -------------------------------------------------------------------------
  29. # platform-specific configuration parameters - edit sun.cf to change
  30.  
  31. # platform:  $XConsortium: sun.cf,v 1.69 91/09/09 18:23:59 rws Exp $
  32.  
  33. # operating system:  SunOS 4.1.1
  34.  
  35. # $XConsortium: sunLib.rules,v 1.6 91/03/24 17:55:58 rws Exp $
  36.  
  37. # -------------------------------------------------------------------------
  38. # site-specific configuration parameters that go after
  39. # the platform-specific parameters - edit site.def to change
  40.  
  41. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  42.  
  43.             SHELL = /bin/sh
  44.  
  45.               TOP = .
  46.       CURRENT_DIR = .
  47.  
  48.                AR = ar clq
  49.   BOOTSTRAPCFLAGS =
  50.                CC = cc
  51.                AS = as
  52.  
  53.          COMPRESS = compress
  54.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  55.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  56.           INSTALL = install
  57.                LD = ld
  58.              LINT = lint
  59.       LINTLIBFLAG = -C
  60.          LINTOPTS = -axz
  61.                LN = ln -s
  62.              MAKE = make
  63.                MV = mv
  64.                CP = cp
  65.  
  66.            RANLIB = ranlib
  67.   RANLIBINSTFLAGS =
  68.  
  69.                RM = rm -f
  70.             TROFF = psroff
  71.          MSMACROS = -ms
  72.               TBL = tbl
  73.               EQN = eqn
  74.      STD_INCLUDES =
  75.   STD_CPP_DEFINES =
  76.       STD_DEFINES =
  77.  EXTRA_LOAD_FLAGS =
  78.   EXTRA_LIBRARIES =
  79.              TAGS = ctags
  80.  
  81.     SHAREDCODEDEF = -DSHAREDCODE
  82.          SHLIBDEF = -DSUNSHLIB
  83.  
  84.     PROTO_DEFINES =
  85.  
  86.      INSTPGMFLAGS =
  87.  
  88.      INSTBINFLAGS = -m 0755
  89.      INSTUIDFLAGS = -m 4755
  90.      INSTLIBFLAGS = -m 0644
  91.      INSTINCFLAGS = -m 0444
  92.      INSTMANFLAGS = -m 0444
  93.      INSTDATFLAGS = -m 0444
  94.     INSTKMEMFLAGS = -m 4755
  95.  
  96.       PROJECTROOT = /usr/local/X11R5
  97.  
  98.      TOP_INCLUDES = -I$(INCROOT)
  99.  
  100.       CDEBUGFLAGS = -O
  101.         CCOPTIONS = -pipe
  102.  
  103.       ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
  104.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
  105.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  106.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  107.  
  108.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  109.  
  110.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)
  111.  
  112.    LDCOMBINEFLAGS = -X -r
  113.       DEPENDFLAGS =
  114.  
  115.         MACROFILE = sun.cf
  116.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  117.  
  118.     IMAKE_DEFINES =
  119.  
  120.          IRULESRC = $(CONFIGDIR)
  121.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  122.  
  123.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  124.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  125.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  126.  
  127. # -------------------------------------------------------------------------
  128. # X Window System Build Parameters
  129. # $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
  130.  
  131. # -------------------------------------------------------------------------
  132. # X Window System make variables; this need to be coordinated with rules
  133.  
  134.           PATHSEP = /
  135.         USRLIBDIR = /usr/local/X11R5/lib
  136.            BINDIR = /usr/local/X11R5/bin
  137.           INCROOT = /usr/local/X11R5/include
  138.      BUILDINCROOT = $(TOP)
  139.       BUILDINCDIR = $(BUILDINCROOT)/X11
  140.       BUILDINCTOP = ..
  141.            INCDIR = $(INCROOT)/X11
  142.            ADMDIR = /usr/adm
  143.            LIBDIR = $(USRLIBDIR)/X11
  144.         CONFIGDIR = $(LIBDIR)/config
  145.        LINTLIBDIR = $(USRLIBDIR)/lint
  146.  
  147.           FONTDIR = $(LIBDIR)/fonts
  148.          XINITDIR = $(LIBDIR)/xinit
  149.            XDMDIR = $(LIBDIR)/xdm
  150.            TWMDIR = $(LIBDIR)/twm
  151.           MANPATH = /usr/local/X11R5/man
  152.     MANSOURCEPATH = $(MANPATH)/man
  153.         MANSUFFIX = n
  154.      LIBMANSUFFIX = 3
  155.            MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
  156.         LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
  157.            NLSDIR = $(LIBDIR)/nls
  158.         PEXAPIDIR = $(LIBDIR)/PEX
  159.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  160.        FONTCFLAGS = -t
  161.  
  162.      INSTAPPFLAGS = $(INSTDATFLAGS)
  163.  
  164.             IMAKE = imake
  165.            DEPEND = makedepend
  166.               RGB = rgb
  167.  
  168.             FONTC = bdftopcf
  169.  
  170.         MKFONTDIR = mkfontdir
  171.         MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
  172.  
  173.         CONFIGSRC = $(TOP)/config
  174.        DOCUTILSRC = $(TOP)/doc/util
  175.         CLIENTSRC = $(TOP)/clients
  176.           DEMOSRC = $(TOP)/demos
  177.            LIBSRC = $(TOP)/lib
  178.           FONTSRC = $(TOP)/fonts
  179.        INCLUDESRC = $(TOP)/X11
  180.         SERVERSRC = $(TOP)/server
  181.           UTILSRC = $(TOP)/util
  182.         SCRIPTSRC = $(UTILSRC)/scripts
  183.        EXAMPLESRC = $(TOP)/examples
  184.        CONTRIBSRC = $(TOP)/../contrib
  185.            DOCSRC = $(TOP)/doc
  186.            RGBSRC = $(TOP)/rgb
  187.         DEPENDSRC = $(UTILSRC)/makedepend
  188.          IMAKESRC = $(CONFIGSRC)
  189.          XAUTHSRC = $(LIBSRC)/Xau
  190.           XLIBSRC = $(LIBSRC)/X
  191.            XMUSRC = $(LIBSRC)/Xmu
  192.        TOOLKITSRC = $(LIBSRC)/Xt
  193.        AWIDGETSRC = $(LIBSRC)/Xaw
  194.        OLDXLIBSRC = $(LIBSRC)/oldX
  195.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  196.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  197.       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  198.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  199.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  200.          FSLIBSRC = $(FONTSRC)/lib/fs
  201.     FONTSERVERSRC = $(FONTSRC)/server
  202.      EXTENSIONSRC = $(TOP)/extensions
  203.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  204.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  205.  
  206. # $XConsortium: sunLib.tmpl,v 1.11 91/07/31 11:32:08 rws Exp $
  207.  
  208. SHLIBLDFLAGS = -assert pure-text
  209. PICFLAGS = -pic
  210.  
  211.   DEPEXTENSIONLIB =
  212.      EXTENSIONLIB = -lXext
  213.  
  214.           DEPXLIB = $(DEPEXTENSIONLIB)
  215.              XLIB = $(EXTENSIONLIB) -lX11
  216.  
  217.         DEPXMULIB = $(USRLIBDIR)/libXmu.sa.$(SOXMUREV)
  218.            XMULIB = -lXmu
  219.  
  220.        DEPOLDXLIB =
  221.           OLDXLIB = -loldX
  222.  
  223.       DEPXTOOLLIB = $(USRLIBDIR)/libXt.sa.$(SOXTREV)
  224.          XTOOLLIB = -lXt
  225.  
  226.         DEPXAWLIB = $(USRLIBDIR)/libXaw.sa.$(SOXAWREV)
  227.            XAWLIB = -lXaw
  228.  
  229.         DEPXILIB =
  230.            XILIB = -lXi
  231.  
  232.         SOXLIBREV = 4.10
  233.           SOXTREV = 4.10
  234.          SOXAWREV = 5.0
  235.         SOOLDXREV = 4.10
  236.          SOXMUREV = 4.10
  237.         SOXEXTREV = 4.10
  238.       SOXINPUTREV = 4.10
  239.  
  240.       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  241.          XAUTHLIB =  -lXau
  242.       DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
  243.          XDMCPLIB =  -lXdmcp
  244.  
  245.         DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
  246.            PHIGSLIB =  -lphigs
  247.  
  248.        DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
  249.           XBSDLIB =  -lXbsd
  250.  
  251.  LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
  252.          LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
  253.           LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
  254.         LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
  255.           LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
  256.            LINTXI = $(LINTLIBDIR)/llib-lXi.ln
  257.         LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln
  258.  
  259.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  260.  
  261.          DEPLIBS1 = $(DEPLIBS)
  262.          DEPLIBS2 = $(DEPLIBS)
  263.          DEPLIBS3 = $(DEPLIBS)
  264.  
  265. # -------------------------------------------------------------------------
  266. # Imake rules for building libraries, programs, scripts, and data files
  267. # rules:  $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $
  268.  
  269. # -------------------------------------------------------------------------
  270. # start of Imakefile
  271.  
  272. CDEBUGFLAGS = -g
  273. SRCS         = xpick.c match.c MultiList.c
  274. OBJS        = xpick.o match.o MultiList.o
  275.  
  276. LOCAL_LIBRARIES = $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  277. DEPLIBS     = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  278.  
  279.  PROGRAM = xpick
  280.  
  281. all:: xpick
  282.  
  283. xpick: $(OBJS) $(DEPLIBS)
  284.     $(RM) $@
  285.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  286.  
  287. saber_xpick:: $(SRCS)
  288.     # load $(ALLDEFINES) $(SRCS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  289.  
  290. osaber_xpick:: $(OBJS)
  291.     # load $(ALLDEFINES) $(OBJS) $(LOCAL_LIBRARIES) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  292.  
  293. install:: xpick
  294.     @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
  295.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
  296.     $(INSTALL) -c $(INSTPGMFLAGS)  xpick $(DESTDIR)$(BINDIR)
  297.  
  298. install.man:: xpick.man
  299.     @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
  300.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
  301.     $(INSTALL) -c $(INSTMANFLAGS) xpick.man $(DESTDIR)$(MANDIR)/xpick.$(MANSUFFIX)
  302.  
  303. depend::
  304.     $(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  305.  
  306. lint:
  307.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  308. lint1:
  309.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  310.  
  311. clean::
  312.     $(RM) $(PROGRAM)
  313.  
  314. install:: Xpick.ad
  315.     @if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
  316.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
  317.     $(INSTALL) -c $(INSTAPPFLAGS) Xpick.ad $(DESTDIR)$(XAPPLOADDIR)/Xpick
  318.  
  319. # -------------------------------------------------------------------------
  320. # common rules for all Makefiles - do not edit
  321.  
  322. emptyrule::
  323.  
  324. clean::
  325.     $(RM_CMD) "#"*
  326.  
  327. Makefile::
  328.     -@if [ -f Makefile ]; then set -x; \
  329.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  330.     else exit 0; fi
  331.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  332.  
  333. tags::
  334.     $(TAGS) -w *.[ch]
  335.     $(TAGS) -xw *.[ch] > TAGS
  336.  
  337. saber:
  338.     # load $(ALLDEFINES) $(SRCS)
  339.  
  340. osaber:
  341.     # load $(ALLDEFINES) $(OBJS)
  342.  
  343. # -------------------------------------------------------------------------
  344. # empty rules for directories that do not have SUBDIRS - do not edit
  345.  
  346. install::
  347.     @echo "install in $(CURRENT_DIR) done"
  348.  
  349. install.man::
  350.     @echo "install.man in $(CURRENT_DIR) done"
  351.  
  352. Makefiles::
  353.  
  354. includes::
  355.  
  356. # -------------------------------------------------------------------------
  357. # dependencies generated by makedepend
  358.  
  359.